import fetch from 'common/src/utils/fetch'


/**
 *释放全部
 */
function releaseAll(calendarId) {
    return fetch({
        url: '/api/electionservice/elcNumberSet/releaseAll?calendarId='+calendarId,
        method: 'post',
    });
}

/**
 *释放全部异步
 */
function releaseAllAsync(calendarId) {
    return fetch({
        url: '/api/electionservice/elcNumberSet/releaseAllAsync?calendarId='+calendarId,
        method: 'post',
    });
}

function exportStatus(key) {
    return fetch({
        url: '/api/electionservice/elecRoundStu/result/'+key,
        method: 'get'
    });
}

/**
 *容量释放设置信息
 */
function getElcNumberSetInfo(calendarId) {
    return fetch({
        url: '/api/electionservice/elcNumberSet/getElcNumberSetInfo?calendarId='+calendarId,
        method: 'post',
    });
}

/**
 *保存容量释放设置信息
 */
function save(data) {
    return fetch({
        url: '/api/electionservice/elcNumberSet/save',
        method: 'post',
        data: data
    });
}

export default {
    "releaseAll": releaseAll,
    'releaseAllAsync': releaseAllAsync,
    'exportStatus': exportStatus,
    "getElcNumberSetInfo": getElcNumberSetInfo,
    "save":save,
}



